package com.situ.cloud.user.controller;

import com.situ.cloud.common.vo.RS;
import com.situ.cloud.user.dto.LoginDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class LoginController {

    @PostMapping("/login")
    public RS doLogin(@RequestBody LoginDTO user) {
        //登录校验　　验证功能：spring security

        System.out.println(user);
        //return RS.ok(JWTUtil.create(user.getId()));
        return RS.ok("wqljrl2134l12h41l2hu431l23h41");
    }

}
